package cn.home.fenni.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.fenni.mapper.HomeServicePackagetagMapper;
import cn.home.fenni.domain.HomeServicePackagetag;
import cn.home.fenni.service.IHomeServicePackagetagService;

/**
 * 服务包-服务包标签Service业务层处理
 * 
 * @author gm
 * @date 2025-04-09
 */
@Service
public class HomeServicePackagetagServiceImpl implements IHomeServicePackagetagService 
{
    @Autowired
    private HomeServicePackagetagMapper homeServicePackagetagMapper;

    /**
     * 查询服务包-服务包标签
     * 
     * @param relationId 服务包-服务包标签主键
     * @return 服务包-服务包标签
     */
    @Override
    public HomeServicePackagetag selectHomeServicePackagetagByRelationId(Long relationId)
    {
        return homeServicePackagetagMapper.selectHomeServicePackagetagByRelationId(relationId);
    }

    /**
     * 查询服务包-服务包标签列表
     * 
     * @param homeServicePackagetag 服务包-服务包标签
     * @return 服务包-服务包标签
     */
    @Override
    public List<HomeServicePackagetag> selectHomeServicePackagetagList(HomeServicePackagetag homeServicePackagetag)
    {
        return homeServicePackagetagMapper.selectHomeServicePackagetagList(homeServicePackagetag);
    }

    /**
     * 新增服务包-服务包标签
     * 
     * @param homeServicePackagetag 服务包-服务包标签
     * @return 结果
     */
    @Override
    public int insertHomeServicePackagetag(HomeServicePackagetag homeServicePackagetag)
    {
        return homeServicePackagetagMapper.insertHomeServicePackagetag(homeServicePackagetag);
    }

    /**
     * 修改服务包-服务包标签
     * 
     * @param homeServicePackagetag 服务包-服务包标签
     * @return 结果
     */
    @Override
    public int updateHomeServicePackagetag(HomeServicePackagetag homeServicePackagetag)
    {
        return homeServicePackagetagMapper.updateHomeServicePackagetag(homeServicePackagetag);
    }

    /**
     * 批量删除服务包-服务包标签
     * 
     * @param relationIds 需要删除的服务包-服务包标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeServicePackagetagByRelationIds(Long[] relationIds)
    {
        return homeServicePackagetagMapper.deleteHomeServicePackagetagByRelationIds(relationIds);
    }

    /**
     * 删除服务包-服务包标签信息
     * 
     * @param relationId 服务包-服务包标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeServicePackagetagByRelationId(Long relationId)
    {
        return homeServicePackagetagMapper.deleteHomeServicePackagetagByRelationId(relationId);
    }

    @Override
    public List<HomeServicePackagetag> selectHomeServicePackagetagByPackageId() {
        return homeServicePackagetagMapper.selectHomeServicePackagetagListByPackageId();
    }
}
